import datetime

from pydantic import BaseModel, Field

from schema.resp_schema.base_schema import BaseRespModel


class MallInfoModel(BaseModel):
    mall_id: int
    name: str
    description: str = Field(None)
    code: str
    icon: str = Field(None)
    create_time: datetime.datetime


class MallResponseModel(BaseRespModel):
    data: MallInfoModel